package net.wofly.sale.stock.domain;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author lign
 * @version 1.0
 * @created 11-10月-2017 21:17:37
 */
@Data
@Entity
@Table(name = "sale_stock_inoutstockdetail")
@ApiModel(description = "出入库明细")
public class InOutStockDetail {
    
    /**
     * 对应的InStockID或OutStockID
     */
    @Id
    private String inOutStockDetailID;
    
    private  String operateStockID;
    
    @ApiModelProperty(value = "终端商品ID", required = true)
    private String commodityTerminalID;
    private long modifyDate;
    @ApiModelProperty(value = "入库数量", required = true)
    private Integer num;
    /**
     * 操作类型
     * 1为入库 2为出库
     */
    private Integer operationType;
    
    public InOutStockDetail() {
        
    }
    @Override
    public void finalize() throws Throwable {
        
    }
}